

status Listdelete(Staticlist L,int i)
{
     int j,k;
     if (i <1 || i >length(L)+1)
     {
         return ERROR;
     }	     

     k =MAXSIZE -1;
      
     for (j = 1;j >= i -1;j++)
     {
          
         k =L[k].cur;
     }
         
     j = L[k].cur;

     L[k].cur = L[j].cur
	     
     free_SLL(L,j);

     return OK; 
}
  
void free_SLL(StaticLinkList space,int k)
{
    space[k].cur = space[0].cur
    space[0].cur = k;	    

}
// 计算长度
int Listlength(StaticLinkList L)
{
   int j= 0;
   int i =L[MAXSIZE -1].cur; 
   while (i)
   {
      i = L[i].cur;
      j++;
   }	   
   return j;
}


